The First And Last Rites ^^^^^ **Definition:** * Where there’s some ritual/boilerplate at the start and end of most test bodies, suggesting a lack of common setup/teardown code **Also Known As:** * Oops I Forgot The Setup **Code Example:** .. code-block:: java @Test public void connectionWorks() { database = openDatabase(); database.healthCheck(); database.close(); } @Test public void countRows() { database = openDatabase(); assertThat(database.countAll()) .isEqualTo(0); database.close(); } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Test Smells - The Coding Craftsman `_ :octicon:`file-code;1em`